.layout {
  user-select: none;
}

.layout-item {
  position: relative;
  line-height: 50px;
  text-align: center;
  border: 1px solid #000;
  cursor: pointer;
}

.layout-item::before {
  content: attr(data-type);
  position: absolute;  
  left: -1px;
  top: -1px;
  z-index: 9;
  padding: 0 4px;
  height: 20px;
  line-height: 20px;
  font-size: 10px;
  border: 1px solid #000;
  background: #fff;
}